package cn.unknowpupil.netty.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create at  2021/5/8 by w10g <br>
 * Initialize EachController ... <br>
 *
 * @Author: <a> unknowpupil </a>
 * @Since: 0.0.1
 */
@RestController
public class EachController {
    @Value("${spring.application.name}")
    private String name;

    @GetMapping("hello")
    public String echo() {
        return name;
    }
}
